package cn.jaye.fabric.controller;

import cn.jaye.fabric.application.AccessPointApplicationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class SecretKeyController {

    @Autowired
    private AccessPointApplicationService accessPointApplicationService;



    @RequestMapping("/secretkey/sign/get")
    public String getSecretSignKey(@RequestParam String accessPointId){
        String result=accessPointApplicationService.getSignKey(accessPointId);
        return result;
    }
    @RequestMapping("/secretkey/para/get")
    public String getSecretParaKey(@RequestParam String accessPointId){
        String result=accessPointApplicationService.getParaKey(accessPointId);
        return result;
    }
}
